
//email;
function ccc() {
    var price=$("#sbEmail").val();
    var reg=/^\w+@[a-zA-Z0-9]{2,10}(?:\.[a-z]{2,4}){1,3}$/;
    var flag=reg.test(price);
    if(flag){

    }else{
        alert("请输入正确邮箱");

    }
    return flag
}
//新增
//名称
function name6() {
    var val = $("#name2").val();
    $.ajax({
        url:"/myspringboot/findSupervisoryname",
        data:{sbname:val},
        type:"post",
        dataType:"json",
        success :function (result) {
            var code = result.code;
            var msg = result.msg;

            if (code==0){
                alert(msg)

            }else {
            }

        }
    })
}
//手机号
function aaaa() {
    var price=$("#aaa").val();
    var reg= /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/;
    var flag=reg.test(price);
    if(flag){

    }else{
        alert("请输入手机号码");

    }
    return flag
}
//email;
function bbbb() {
    var price=$("#email1").val();
    var reg=/^\w+@[a-zA-Z0-9]{2,10}(?:\.[a-z]{2,4}){1,3}$/;
    var flag=reg.test(price);
    if(flag){

    }else{
        alert("请输入正确邮箱");

    }
    return flag
}
//修改
function name5() {
    var val = $("#name").val();
    $.ajax({
        url:"/myspringboot/findSupervisoryname",
        data:{sbname:val},
        type:"post",
        dataType:"json",
        success :function (result) {
            var code = result.code;
            var msg = result.msg;

            if (code==0){
                alert(msg)

            }else {
            }

        }
    })
}
//手机号
function vvvv() {
    var price=$("#phone").val();
    var reg= /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/;
    var flag=reg.test(price);
    if(flag){

    }else{
        alert("请输入手机号码");

    }
    return flag
}
//email;
function mmmm() {
    var price=$("#email").val();
    var reg=/^\w+@[a-zA-Z0-9]{2,10}(?:\.[a-z]{2,4}){1,3}$/;
    var flag=reg.test(price);
    if(flag){

    }else{
        alert("请输入正确的邮箱")
    }
    return flag;
}
